﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 mc:Ignorable="d"
			 x:Class="ErickOrlando.Utilidades.Views.CuadroMensaje"
			 Width="381"
			 Height="118"
			 d:DesignWidth="381"
			 d:DesignHeight="118">
	<UserControl.Resources>
		<Style x:Key="Botones"
			   TargetType="Button">
			<Setter Property="Foreground"
					Value="Black" />
		</Style>
		<Style x:Key="Texto"
			   TargetType="TextBlock">
			<Setter Property="Foreground"
					Value="Black" />
		</Style>
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot"
		  Margin="2">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="199*" />
			<ColumnDefinition Width="160*" />
		</Grid.ColumnDefinitions>
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="DialogoGroup">
				<VisualState x:Name="Confirmacion">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Content)"
													   Storyboard.TargetName="OKButton">
							<DiscreteObjectKeyFrame KeyTime="0"
													Value="Si" />
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Content)"
													   Storyboard.TargetName="CancelButton">
							<DiscreteObjectKeyFrame KeyTime="0"
													Value="No" />
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="Informacion">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Content)"
													   Storyboard.TargetName="OKButton">
							<DiscreteObjectKeyFrame KeyTime="0"
													Value="Aceptar" />
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)"
													   Storyboard.TargetName="CancelButton">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Visibility>Collapsed</Visibility>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
						<DoubleAnimation Duration="0"
										 To="94"
										 Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)"
										 Storyboard.TargetName="OKButton"
										 d:IsOptimized="True" />
						<DoubleAnimation Duration="0"
										 To="0.667"
										 Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)"
										 Storyboard.TargetName="OKButton"
										 d:IsOptimized="True" />
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<TextBlock x:Name="txtBody"
				   TextWrapping="Wrap"
				   Style="{StaticResource ResourceKey=Texto}"
				   Grid.ColumnSpan="2"
				   d:LayoutOverrides="Margin" />
		<StackPanel Orientation="Horizontal"
					Grid.Row="1"
					Grid.Column="1"
					d:LayoutOverrides="Margin">
			<Button x:Name="OKButton"
					Content="Aceptar"
					Width="75"
					Margin="0,0,8,0"
					Height="23"
					Style="{StaticResource Botones}"
					HorizontalAlignment="Right"
					RenderTransformOrigin="0.5,0.5">
				<Button.RenderTransform>
					<CompositeTransform />
				</Button.RenderTransform>
			</Button>
			<Button Content="Cancelar"
					Height="23"
					HorizontalAlignment="Right"
					x:Name="CancelButton"
					VerticalAlignment="Top"
					Style="{StaticResource Botones}"
					Width="75" />
		</StackPanel>

	</Grid>
</UserControl>